//
//  CityViewController.m
//  EDPS
//
//  Created by dllo on 15/11/26.
//  Copyright © 2015年 张维扬. All rights reserved.
//

#import "CityViewController.h"
#import "ZWY_NetHandle.h"

@interface CityViewController ()

@property (nonatomic,retain) UIWebView *webView;

@end

@implementation CityViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
   /* self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStyleDone target:self action:@selector(leftActionTurn)];
    self.navigationItem.leftBarButtonItem.tintColor = [UIColor blackColor];*/
    [self creatViews];
}
- (void)viewWillAppear:(BOOL)animated
{
    self.navigationController.navigationBar.hidden = YES;
    
}
- (void)creatViews
{
    self.webView = [[UIWebView alloc] initWithFrame:self.view.frame];
    UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(0, 25, 60, 30)];
   // button.backgroundColor = [UIColor colorWithRed:70 / 255.0 green:178 / 255.0 blue:195/ 255.0 alpha:1];
    [button setImage:[UIImage imageNamed:@"iconfont-newfanhui.png"] forState:UIControlStateNormal];
    [button addTarget:self action:@selector(leftActionTurn) forControlEvents:UIControlEventTouchUpInside];
    [self.webView addSubview:button];
    self.webView.backgroundColor =[UIColor whiteColor];
    [self.view addSubview:self.webView];
    self.webView.scalesPageToFit = YES;
    self.webView.scrollView.bounces = NO;
    NSURL *url = [NSURL URLWithString:self.url];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [self.webView loadRequest:request];
}

- (void)leftActionTurn
{
    [self.navigationController popViewControllerAnimated:YES];
}


@end